import { request } from "./request";
export function getUsersData(params) {
    return request({
        method: 'get',
        url: '/users',
        params
    })
}
export function changetUserState(url) {
    return request({
        method: 'put',
        url: url
    })
}
export function addUserInformation(params) {
    return request({
        method: 'post',
        url: '/users',
        params
    })
}
export function queryUserInformation(url) {
    return request({
        method: 'get',
        url: url
    })
}
export function submitEditUserInformation(url, params) {
    return request({
        method: 'put',
        url: url,
        data: params
    })
}
export function removeUserInformation(url) {
    return request({
        method: 'delete',
        url: url,
    })
}
// 获取角色列表
export function getAllRoles() {
    return request({
        method: 'get',
        url: '/roles'
    })
}
// 分配角色
export function putAllocationRoles(url, params) {
    return request({
        method: 'put',
        url: url,
        data: params
    })
}